package com.aliyun.tools.importdialog;

import java.io.FileNotFoundException;

import org.gnome.gtk.Button;
import org.gnome.gtk.Window;



public class ImportDialog{
	int selfWidth;
	int selfHeight;

	private boolean importDialogShowed = true;
	ImportCategoryChooser chooser;
	public ImportDialog(Window winMain, int width, int height)throws FileNotFoundException{
		this.selfHeight = width;
		this.selfHeight = height;
	
		chooser = new ImportCategoryChooser(winMain, selfWidth, selfHeight);
		this.importDialogShowed = chooser.importCategoryChooserShowed;	
	}
	
	
	/**
	 * 获得导入窗口显示状态
	 * @return
	 */
	public boolean getImportDialogShowed(){
		return importDialogShowed;
	}
	
	/**
	 * 显示导入窗口
	 */
	public void showAll(){
		chooser.showAll();
	}
	
	/**
	 * 隐藏导入窗口
	 */
	public void hide(){
		chooser.hide();
	}
	
	
}